ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Edit Command Palette

by twolfson ALL

Add/edit commands for your Command Palette

Details

Installs

  • Total 15K
  • Win 11K
  • Mac 3K
  • Linux 2K
Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18
Windows 0 1 2 0 0 0 0 0 0 2 0 0 0 0 5 1 1 3 1 0 0 0 1 1 1 4 1 1 1 1 1 0 0 0 0 1 1 0 1 0 1 1 0 0 0
Mac 0 0 1 1 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 1 0 0 1 0 0 0 0 0 0 0 2 0 0 0 1 1 0 2 0 0 1 0 2 0 0
Linux 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
012345Apr 3Mar 31Mar 28Mar 25Mar 22Mar 19Mar 16Mar 13Mar 10Mar 7Mar 4Mar 1Feb 26Feb 23Feb 20Apr 3 Linux: 0 Mac: 0 Windows: 0Apr 2 Linux: 0 Mac: 0 Windows: 1Apr 1 Linux: 0 Mac: 1 Windows: 2Mar 31 Linux: 0 Mac: 1 Windows: 0Mar 30 Linux: 1 Mac: 0 Windows: 0Mar 29 Linux: 0 Mac: 0 Windows: 0Mar 28 Linux: 1 Mac: 0 Windows: 0Mar 27 Linux: 0 Mac: 1 Windows: 0Mar 26 Linux: 0 Mac: 0 Windows: 0Mar 25 Linux: 0 Mac: 0 Windows: 2Mar 24 Linux: 0 Mac: 0 Windows: 0Mar 23 Linux: 0 Mac: 0 Windows: 0Mar 22 Linux: 0 Mac: 0 Windows: 0Mar 21 Linux: 0 Mac: 1 Windows: 0Mar 20 Linux: 0 Mac: 0 Windows: 5Mar 19 Linux: 0 Mac: 0 Windows: 1Mar 18 Linux: 0 Mac: 0 Windows: 1Mar 17 Linux: 0 Mac: 1 Windows: 3Mar 16 Linux: 0 Mac: 0 Windows: 1Mar 15 Linux: 1 Mac: 1 Windows: 0Mar 14 Linux: 0 Mac: 0 Windows: 0Mar 13 Linux: 0 Mac: 0 Windows: 0Mar 12 Linux: 1 Mac: 1 Windows: 1Mar 11 Linux: 0 Mac: 0 Windows: 1Mar 10 Linux: 1 Mac: 0 Windows: 1Mar 9 Linux: 1 Mac: 0 Windows: 4Mar 8 Linux: 0 Mac: 0 Windows: 1Mar 7 Linux: 1 Mac: 0 Windows: 1Mar 6 Linux: 0 Mac: 0 Windows: 1Mar 5 Linux: 0 Mac: 0 Windows: 1Mar 4 Linux: 0 Mac: 2 Windows: 1Mar 3 Linux: 0 Mac: 0 Windows: 0Mar 2 Linux: 0 Mac: 0 Windows: 0Mar 1 Linux: 0 Mac: 0 Windows: 0Feb 28 Linux: 0 Mac: 1 Windows: 0Feb 27 Linux: 0 Mac: 1 Windows: 1Feb 26 Linux: 0 Mac: 0 Windows: 1Feb 25 Linux: 0 Mac: 2 Windows: 0Feb 24 Linux: 0 Mac: 0 Windows: 1Feb 23 Linux: 0 Mac: 0 Windows: 0Feb 22 Linux: 0 Mac: 1 Windows: 1Feb 21 Linux: 0 Mac: 0 Windows: 1Feb 20 Linux: 0 Mac: 2 Windows: 0Feb 19 Linux: 0 Mac: 0 Windows: 0Feb 18 Linux: 0 Mac: 0 Windows: 0Apr 3 Linux: 0 Mac: 0 Windows: 0Apr 2 Linux: 0 Mac: 0 Windows: 1Apr 1 Linux: 0 Mac: 1 Windows: 2Mar 31 Linux: 0 Mac: 1 Windows: 0Mar 30 Linux: 1 Mac: 0 Windows: 0Mar 29 Linux: 0 Mac: 0 Windows: 0Mar 28 Linux: 1 Mac: 0 Windows: 0Mar 27 Linux: 0 Mac: 1 Windows: 0Mar 26 Linux: 0 Mac: 0 Windows: 0Mar 25 Linux: 0 Mac: 0 Windows: 2Mar 24 Linux: 0 Mac: 0 Windows: 0Mar 23 Linux: 0 Mac: 0 Windows: 0Mar 22 Linux: 0 Mac: 0 Windows: 0Mar 21 Linux: 0 Mac: 1 Windows: 0Mar 20 Linux: 0 Mac: 0 Windows: 5Mar 19 Linux: 0 Mac: 0 Windows: 1Mar 18 Linux: 0 Mac: 0 Windows: 1Mar 17 Linux: 0 Mac: 1 Windows: 3Mar 16 Linux: 0 Mac: 0 Windows: 1Mar 15 Linux: 1 Mac: 1 Windows: 0Mar 14 Linux: 0 Mac: 0 Windows: 0Mar 13 Linux: 0 Mac: 0 Windows: 0Mar 12 Linux: 1 Mac: 1 Windows: 1Mar 11 Linux: 0 Mac: 0 Windows: 1Mar 10 Linux: 1 Mac: 0 Windows: 1Mar 9 Linux: 1 Mac: 0 Windows: 4Mar 8 Linux: 0 Mac: 0 Windows: 1Mar 7 Linux: 1 Mac: 0 Windows: 1Mar 6 Linux: 0 Mac: 0 Windows: 1Mar 5 Linux: 0 Mac: 0 Windows: 1Mar 4 Linux: 0 Mac: 2 Windows: 1Mar 3 Linux: 0 Mac: 0 Windows: 0Mar 2 Linux: 0 Mac: 0 Windows: 0Mar 1 Linux: 0 Mac: 0 Windows: 0Feb 28 Linux: 0 Mac: 1 Windows: 0Feb 27 Linux: 0 Mac: 1 Windows: 1Feb 26 Linux: 0 Mac: 0 Windows: 1Feb 25 Linux: 0 Mac: 2 Windows: 0Feb 24 Linux: 0 Mac: 0 Windows: 1Feb 23 Linux: 0 Mac: 0 Windows: 0Feb 22 Linux: 0 Mac: 1 Windows: 1Feb 21 Linux: 0 Mac: 0 Windows: 1Feb 20 Linux: 0 Mac: 2 Windows: 0Feb 19 Linux: 0 Mac: 0 Windows: 0Feb 18 Linux: 0 Mac: 0 Windows: 0Apr 3 Linux: 0 Mac: 0 Windows: 0Apr 2 Linux: 0 Mac: 0 Windows: 1Apr 1 Linux: 0 Mac: 1 Windows: 2Mar 31 Linux: 0 Mac: 1 Windows: 0Mar 30 Linux: 1 Mac: 0 Windows: 0Mar 29 Linux: 0 Mac: 0 Windows: 0Mar 28 Linux: 1 Mac: 0 Windows: 0Mar 27 Linux: 0 Mac: 1 Windows: 0Mar 26 Linux: 0 Mac: 0 Windows: 0Mar 25 Linux: 0 Mac: 0 Windows: 2Mar 24 Linux: 0 Mac: 0 Windows: 0Mar 23 Linux: 0 Mac: 0 Windows: 0Mar 22 Linux: 0 Mac: 0 Windows: 0Mar 21 Linux: 0 Mac: 1 Windows: 0Mar 20 Linux: 0 Mac: 0 Windows: 5Mar 19 Linux: 0 Mac: 0 Windows: 1Mar 18 Linux: 0 Mac: 0 Windows: 1Mar 17 Linux: 0 Mac: 1 Windows: 3Mar 16 Linux: 0 Mac: 0 Windows: 1Mar 15 Linux: 1 Mac: 1 Windows: 0Mar 14 Linux: 0 Mac: 0 Windows: 0Mar 13 Linux: 0 Mac: 0 Windows: 0Mar 12 Linux: 1 Mac: 1 Windows: 1Mar 11 Linux: 0 Mac: 0 Windows: 1Mar 10 Linux: 1 Mac: 0 Windows: 1Mar 9 Linux: 1 Mac: 0 Windows: 4Mar 8 Linux: 0 Mac: 0 Windows: 1Mar 7 Linux: 1 Mac: 0 Windows: 1Mar 6 Linux: 0 Mac: 0 Windows: 1Mar 5 Linux: 0 Mac: 0 Windows: 1Mar 4 Linux: 0 Mac: 2 Windows: 1Mar 3 Linux: 0 Mac: 0 Windows: 0Mar 2 Linux: 0 Mac: 0 Windows: 0Mar 1 Linux: 0 Mac: 0 Windows: 0Feb 28 Linux: 0 Mac: 1 Windows: 0Feb 27 Linux: 0 Mac: 1 Windows: 1Feb 26 Linux: 0 Mac: 0 Windows: 1Feb 25 Linux: 0 Mac: 2 Windows: 0Feb 24 Linux: 0 Mac: 0 Windows: 1Feb 23 Linux: 0 Mac: 0 Windows: 0Feb 22 Linux: 0 Mac: 1 Windows: 1Feb 21 Linux: 0 Mac: 0 Windows: 1Feb 20 Linux: 0 Mac: 2 Windows: 0Feb 19 Linux: 0 Mac: 0 Windows: 0Feb 18 Linux: 0 Mac: 0 Windows: 0

Readme

Source
raw.​githubusercontent.​com

sublime-edit-command-palette

Add/edit commands for your Command Palette

This plugin was created out of frustration that multiple plugin creators write key bindings but nothing for the command palette.

Animation

Getting Started

Installation

This package is available under Edit Command Palette inside of Package Control, a Sublime Text plugin that allows for easy management of other plugins.

If you prefer the manual route, you can install the script via the following command in the Sublime Text terminal (ctrl+`) which utilizes git clone.

import os; path=sublime.packages_path(); (os.makedirs(path) if not os.path.exists(path) else None); window.run_command('exec', {'cmd': ['git', 'clone', 'https://github.com/twolfson/sublime-edit-command-palette', 'Edit Command Palette'], 'working_dir': path})

Packages can be uninstalled via “Package Control: Remove Package” via the command pallete, ctrl+shift+p on Windows/Linux, command+shift+p on Mac.

Command Palette

sublime-edit-command-palette provides 2 commands to access Sublime Text's commands:

  • Preferences: Commands - Default - Opens default commands provided by Sublime Text
  • Preferences: Commands - User - Opens custom user commands and provides prompt for first-timers

Menu

sublime-edit-command-palette defines 2 menu items under Preferences:

  • Commands - Default - Opens default commands provided by Sublime Text
  • Commands - User - Opens custom user commands and provides prompt for first-timers

Documentation

edit_command_palette_open_user(self)

edit_command_palette_open_user creates a default Packages/User/Default.sublime-commands containing a prompt for the user, opens it, and sets the language to JSON.

We add in the default and language to make it more approachable. Otherwise, it would be an empty file and in plain text by default.

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality.

Donating

Support this project and others by twolfson via gratipay.

Support via Gratipay

Unlicense

As of Oct 31 2014, Todd Wolfson has released this repository and its contents to the public domain.

It has been released under the UNLICENSE.